if (!sessionStorage.getItem("user")) {
	sessionStorage.setItem("backUrl", window.location.href);
	layer.alert("还没登陆呢我的祖宗唷", {
		closeBtn: 0
	}, () => {
		window.location.href = "../login/login.html";
	});
}

// 初始化banner
new Swiper('.banner', {
	loop: true,
	keyboard: true,
	autoplay: {
		delay: 3000,
		disableOnInteraction: false,
	},
})
